import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { withRouter } from 'react-router-dom';
import { Tools, Button, Bubble,Flex,WhiteSpace,List} from 'weaver-mobile';
import { Form,Upload} from 'weaver-mobile-page';

const getLabel = Tools.getLabel;

@inject("receiveRegistStore")
@observer
export default class receiveRegist extends Component{

  static defaultProps = {
    prefixCls: 'wea-odoc-receiveRegist'
  }

  // componentWillMount(){
  //   const {form,getFileData} = this.props.receiveRegistStore;
  //   const condition = JSON.parse(decodeURI(window.location.href).split("?xxxxx")[1])
  //   form.initForm(condition, '/receiveRegist') 
  //   getFileData(condition);
  // }

  componentDidMount(){
    var tabBar = document.getElementsByClassName("am-tab-bar")[0];
    tabBar.parentNode.removeChild(tabBar);
    document.getElementById("wea-odoc-receiveRegist").style.height = window.innerHeight+"px";
  }


  render() {
    const { form,receiveToOther,registSave,fileInfo,fileUploadChange} = this.props.receiveRegistStore;
    return (
      <div id="wea-odoc-receiveRegist">
      asdassda
      </div>
    );
  }

}